import {h} from "../../lib/guide-mini-vue.esm.js";
import {Foo} from './Foo.js'


// 通过 windows.self这个变量来保存render执行时的this,来方便调试

export const App = {
    name: "app", render() {
        return h("div", {}, [h("div", {}, "App"), h(Foo, {
            onAdd(a, b) {
                console.log("onAdd执行了")
                console.log(a, b)
            },
            onAddFoo(a, b) {
                console.log("onAddFoo执行了")
                console.log(a, b)
            }
        },)]);
    }, setup() {
        return {}
    }
}